package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 图片表
 * </p>
 *
 * @author zds
 * @since 2021-03-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Img对象", description="图片表")
public class Img implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "图片名称")
    @TableField("file_name")
    private String fileName;

    @ApiModelProperty(value = "存储地址")
    @TableField("file_url")
    private String fileUrl;

    @ApiModelProperty(value = "文件大小 单位字节")
    @TableField("file_size")
    private Long fileSize;

    @ApiModelProperty(value = "文件分类（字典表）")
    @TableField("file_category")
    private Integer fileCategory;

    @ApiModelProperty(value = "文件base64编码")
    @TableField("file_base")
    private String fileBase;

    @ApiModelProperty(value = "状态 0：正常 1：已删除")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "身份证号码")
    @TableField("identity_id")
    private String identityId;


}
